import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App.tsx";
import "./index.css";
import "amfe-flexible";
import { Provider } from "react-redux";
import store from "./store/store";
import { getcardSingle } from "@/store/configureStore/reducer.ts";
import routes from "./router/Router.tsx";
store.dispatch(getcardSingle());
const root = ReactDOM.createRoot(
  document.getElementById("root") as HTMLElement
);
root.render(
  <Provider store={store}>
    <App routes={routes} />
  </Provider>
);
